import request from '@/utils/request-sqf'

export function getList(params) {
    return request({
        url: `jeecg-boot/bas/basCustomer/list`,
        method: 'GET',
        params
    })
}

export function getLista(params) {
    return request({
        url: `jeecg-boot/bas/basSupplier/list`,
        method: 'GET',
        params
    })
}

export function getListb(params) {
    return request({
        url: `jeecg-boot/bas/basCurrency/list`,
        method: 'GET',
        params
    })
}

export function getListc(params) {
    return request({
        url: `jeecg-boot/bas/basWarehouse/rootList`,
        method: 'GET',
        params
    })
}
export function delList(params) {
    return request({
        url: `jeecg-boot/bas/basWarehouse/delete`,
        method: 'DELETE',
        params
    })
}
export function delListd(params) {
    return request({
        url: `jeecg-boot/bas/basMaterial/delete`,
        method: 'DELETE',
        params
    })
}
export function newAddList(data) {
    return request({
        url: `jeecg-boot/bas/basMaterial/add`,
        method: 'POST',
        data
    })
}
export function editList(data) {
    return request({
        url: `jeecg-boot/bas/basWarehouse/edit`,
        method: 'PUT',
        data
    })
}

export function newAddLista(data) {
    return request({
        url: `jeecg-boot/bas/basWarehouse/add`,
        method: 'POST',
        data
    })
}


export function editListw(data) {
    return request({
        url: `jeecg-boot/bas/basMaterial/edit`,
        method: 'PUT',
        data
    })
}





export function getListd(params) {
    return request({
        url: `jeecg-boot/bas/basMaterial/list`,
        method: 'GET',
        params
    })
}

export function getListe(params) {
    return request({
        url: `jeecg-boot/bas/basMaterialCategory/rootList`,
        method: 'GET',
        params
    })
}

export function getListf(params) {
    return request({
        url: `jeecg-boot/bas/basMeasureUnit/rootList`,
        method: 'GET',
        params
    })
}

export function getListg(params) {
    return request({
        url: `jeecg-boot/bas/basBankAccount/list`,
        method: 'GET',
        params
    })
}